package com.lguplus.servicepoi.transfer;

/**
 * Category Information Transfer Object
 */
public class CategoryInfo {

	/**	Service code */
	private int serviceCode;

	/**	Category code */
	private int cateCode;
	/**	Category Name */
	private String cateName;
	
	/**	Level 1 Category code */
	private int level1Code;
	/**	Level 2 Category code */
	private int level2Code;
	/**	Level 3 Category code */
	private int level3Code;
	
	/**	Regist Date */
	private String registDate;
	/**	Regist ID */
	private String registID;
	
	public CategoryInfo() {
		this.serviceCode = 0;
		this.cateCode = 0;
		this.level1Code = 0;
		this.level2Code = 0;
		this.level3Code = 0;
		this.cateName = "";
		this.registDate = "";
		this.registID = "";
	}

	public int getServiceCode() {
		return serviceCode;
	}

	public void setServiceCode(int serviceCode) {
		this.serviceCode = serviceCode;
	}

	public int getCateCode() {
		return cateCode;
	}

	public void setCateCode(int cateCode) {
		this.cateCode = cateCode;
	}

	public int getLevel1Code() {
		return level1Code;
	}

	public void setLevel1Code(int level1Code) {
		this.level1Code = level1Code;
	}

	public void setLevel1Code(String level1Code) {
		try{
			this.level1Code = Integer.parseInt(level1Code);
		}catch(NumberFormatException e){
			this.level1Code = 0;
		}
	}
	
	public int getLevel2Code() {
		return level2Code;
	}

	public void setLevel2Code(int level2Code) {
		this.level2Code = level2Code;
	}

	public void setLevel2Code(String level2Code) {
		try{
			this.level2Code = Integer.parseInt(level2Code);
		}catch(NumberFormatException e){
			this.level2Code = 0;
		}
	}
	
	public int getLevel3Code() {
		return level3Code;
	}

	public void setLevel3Code(int level3Code) {
		this.level3Code = level3Code;
	}

	public void setLevel3Code(String level3Code) {
		try{
			this.level3Code = Integer.parseInt(level3Code);
		}catch(NumberFormatException e){
			this.level3Code = 0;
		}
	}

	public String getCateName() {
		return cateName;
	}

	public void setCateName(String cateName) {
		this.cateName = cateName;
	}

	public String getRegistDate() {
		return registDate;
	}

	public void setRegistDate(String registDate) {
		this.registDate = registDate;
	}

	public String getRegistID() {
		return registID;
	}

	public void setRegistID(String registID) {
		this.registID = registID;
	}
	
	public void print(){
		System.out.println("serviceCode = " + this.serviceCode);
		System.out.println("cateCode = " + this.cateCode);
		System.out.println("cateName = " + this.cateName);
		System.out.println("level1Code = " + this.level1Code);
		System.out.println("level2Code = " + this.level2Code);
		System.out.println("level3Code = " + this.level3Code);
		System.out.println("registDate = " + this.registDate);
		System.out.println("registID = " + this.registID);
	}
}
